package com.leaves.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leaves.entity.UserInfo;
import com.leaves.entity.vo.UserInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: LEAVES
 * @Version 1.0
 * @Date: 2021年09月21日 13时14分00秒
 * @Description:
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Select("SELECT * FROM user_info ORDER BY create_date")
    List<UserInfoVo> selectListAll();

    int updateEnableById(UserInfo userInfo);
}